ROOT=..
PLATFORM=$(shell $(ROOT)/systype.sh)
include $(ROOT)/Make.defines.$(PLATFORM)

PROGS += ls1
PROGS += mycat
PROGS += getcputc
PROGS += hello
PROGS += shell1
PROGS += testerror
PROGS += uidgid
PROGS += shell2

all: $(PROGS) 

$(PROGS): $(LIBAPUE)
# %: %.c $(LIBAPUE)
	$(CC) $(CFLAGS) $@.c -o $@ $(LDFLAGS) $(LDLIBS)

clean:
	rm -rf $(PROGS) $(TEMPFILES) 
	( cd $(ROOT)/lib/  &&  $(MAKE) clean )

include $(ROOT)/Make.libapue.inc 